<template>
<div>
  ShowInfo:{{name}}-{{age}}-{{height}}
</div>
</template>

<script>
import {inject} from 'vue'
export default {
  name: "ShowInfo",
  setup(props,context){
    const name=inject('name')
    const age=inject('age')
    const height=inject('height',1.89)
    return{
      name,
      age,
      height
    }
  }
}
</script>

<style scoped>

</style>